<template>
  <div>
    <div class="w">
      <div class="header-set">
        <div class="fanhui" @click="$router.go(-1)">
          <span class="iconfont icon-jiantouzuo"></span>
        </div>
        <div class="header-title">设置</div>
      </div>
      <div class="information">
        <div class="information-user">
          <div class="pic">
            <img src="" alt="" />
          </div>
          <div class="personal-name">
            <p>ysjx</p>
            <p>电话号码登录：173······41</p>
          </div>
        </div>
        <div class="information-details">
          <span class="iconfont icon-jiantouyou"></span>
        </div>
      </div>
      <div class="functions">
        <ul>
          <li>账户管理</li>
          <li>密码</li>
          <li>创作中心</li>
          <li>快速上传菜谱</li>
          <li>推送设置</li>
          <li>播放设置</li>
          <li>隐私设置</li>
          <li>帮助与反馈</li>
          <li>用户协议</li>
          <li>隐私政策</li>
          <li>个人信息收集清单</li>
          <li>第三方信息共享清单</li>
          <li>证照中心</li>
          <li>网络诊断</li>
          <li>清除缓存</li>
          <li>检查更新</li>
        </ul>
      </div>
      <div class="signOut" @click="signOuts">退出登录</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    signOuts() {
      sessionStorage.clear();
      this.$router.push({
        path: "signInview",
      });
      this.$emit('signOuts');
    },
  },
};
</script>

<style lang="scss" scoped>
.header-set {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  .fanhui {
    span {
      font-size: 16px;
    }
  }
  .header-title {
    margin-left: 40%;
  }
}

.information {
  height: 105px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .information-user {
    display: flex;
    .pic {
      height: 43px;
      width: 43px;
      border-radius: 50%;
      overflow: hidden;
    }
    .personal-name {
      p {
        &:nth-child(2) {
          margin-top: 3px;
          font-size: 14px;
        }
      }
    }
  }
}
.functions {
  padding: 0 20px;
  ul {
    li {
      height: 53px;
      line-height: 53px;
    }
  }
}
.signOut {
  height: 63px;
  line-height: 63px;
  color: red;
  text-align: center;
}
</style>